#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->pushButton_dark->setIcon((QIcon){":/BHDCIHECGBIAC-w0u1DWDwc7.png"});
    ui->pushButton_dark->setIconSize({30,25});
    ui->pushButton_dark->setShortcut(QKeySequence(Qt::Key_2));
    QIcon icon_light(":/BHDCIHECEGCHB-Ji4KAx2uHs.png");
    ui->pushButton_light->setIcon(icon_light);
    ui->pushButton_light->setIconSize({30,25});
    ui->pushButton_light->setShortcut(QKeySequence(Qt::Key_1));
}

Widget::~Widget()
{
    delete ui;
}
void Widget::on_pushButton_light_clicked(bool checked)
{
    ;
}

void Widget::on_pushButton_light_clicked()
{
    ui->plainTextEdit->setStyleSheet("background : white;color : black");
    this->setStyleSheet("background : rgb(240,240,240);color : black");
    ui->pushButton_light->setStyleSheet("background : rgb(240,240,240);color : black");
    ui->pushButton_dark->setStyleSheet("background : rgb(240,240,240);color : black");
}

void Widget::on_pushButton_dark_clicked()
{
    ui->plainTextEdit->setStyleSheet("background : black;color : white");
    this->setStyleSheet("background : black;color : white");
    ui->pushButton_light->setStyleSheet("background : rgb(0,240,240);color : black");
    ui->pushButton_dark->setStyleSheet("background : rgb(0,240,240);color : black");
}
